<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport"
	content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="fineui-icon" href="images/favicon.ico">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<meta name="keywords" content="JEECG 企业级快速开发平台">
<meta name="description" content="JEECG 企业级快速开发平台，她采用强大代码生成，在线开发能力">
 <link rel="shortcut icon" href="images/favicon.ico">
<title><t:mutiLang langKey="jeect.platform" /></title>
<link href="plug-in/hplus/css/font-awesome.min.css?v=4.4.0"
	rel="stylesheet">
<link rel="stylesheet" href="plug-in/themes/fineui/common/css/sccl.css">
<link rel="stylesheet" type="text/css"
	href="plug-in/themes/fineui/common/skin/qingxin/skin.css"
	id="layout-skin" />
<link rel="stylesheet"
	href="plug-in/themes/fineui/common/iconfont/iconfont.css">
<link rel="stylesheet"
	href="plug-in/themes/fineui/smart-menu/smartMenu.css">
<t:base type="tools,jquery"></t:base>
</head>
<body style="overflow-y:hidden;">
	<div class="layout-admin">
		<!-- top -->
		<header class="layout-header">
			<span class="header-logo"><img alt="image" width="190"
				height="68" src="plug-in/login/images/jeecg-aceplus.png" /> </span>
			<ul class="header-bar">
				<li class="header-bar-nav personInfo"><a href="javascript:;"
					id="personInfo"> <span> <img
							src="plug-in/themes/fineui/common/image/head.jpg"
							style="width:24px;display:inline-block;border-radius:20px">
							<span>${userName}</span> <i class="icon-font adminIcon"
							style="margin-right:5px;">&#xe607;</i> </span> </a>

					<ul class="header-dropdown-menu" style="padding-right:4px">
						<li><a
							href="javascript:openwindow('个人信息','userController.do?userinfo')">
								个人信息 </a>
						</li>
						<li><a
							href="javascript:add('<t:mutiLang langKey="common.change.password"/>','userController.do?changepassword','',550,200)">
								<t:mutiLang langKey="common.change.password" /> </a>
						</li>
						<li><a href="javascript:logout()"> <i class="icon-off"></i>
								<t:mutiLang langKey="common.logout" /> </a>
						</li>
					</ul>
				</li>
			</ul>
		</header>

		<!-- 左侧菜单 -->
		<aside class="layout-side">
			<ul class="side-menu">
				<t:menu style="fineui" menuFun="${menuMap}"></t:menu>
			</ul>
		</aside>

		<!-- 切换左侧菜单栏 -->
		<div id="toggleLeftMenu" class="layout-side-arrow"
			style="display:none">
			<div class="layout-side-arrow-icon">
				<i class="icon-font">&#xe60e;</i>
			</div>
		</div>

		<!-- 右侧home -->
		<section class="layout-main">
			<div class="layout-main-tab">
				<button onclick="toggleLeftMenu(this);" class="tab-btn btn-left"
					title="折叠菜单">
					<i class="icon-font">&#xe60e;</i>
				</button>
				<!-- <button class="tab-btn btn-left" style="left:18px"><i class="icon-font">&#xe628;</i></button> -->
				<nav class="tab-nav">
					<div class="tab-nav-content" id="tab-contents-div">
						<div id="tytabbottomsepar" class="f-tabstrip-header-inkbar"></div>
						<a href="javascript:void(0);" id="myhomeAtag"
							class="content-tab active" data-id="home.html"> <span
							class="fa fa-home colorgray"></span>首页</a>
					</div>
				</nav>

				<button id="activeTabToolRefresh" class="tab-btn mytabbtn"
					style="right:30px;" title="刷新本页">
					<i class="icon-font" style="font-size:16px;">&#xe60b;</i>
				</button>
				<button class="tab-btn btn-right">
					<i class="icon-font">&#xe629;</i>
				</button>
			</div>
			<div class="layout-main-body" style="margin:0;overflow-y: hidden;">
				<iframe class="body-iframe" name="iframe0" width="100%"
					height="100%" src="loginController.do?fineuiHome" frameborder="0"
					data-id="home.html" seamless></iframe>
			</div>
		</section>
	</div>

	<script type="text/javascript"
		src="plug-in/themes/fineui/common/js/sccl.js"></script>
	<script type="text/javascript"
		src="plug-in/themes/fineui/common/js/sccl-util.js"></script>

	<script type="text/javascript"
		src="plug-in/themes/fineui/smart-menu/jquery-smartMenu.js"></script>
	<script src="plug-in/jquery-plugs/storage/jquery.storageapi.min.js"></script>
	<!-- 自动补全 -->
	<link rel="stylesheet"
		href="plug-in/jquery/jquery-autocomplete/jquery.autocomplete.css"
		type="text/css"></link>
	<script type="text/javascript"
		src="plug-in/jquery/jquery-autocomplete/jquery.autocomplete.min.js"></script>


	<!-- 在线聊天 -->
	<%-- <%@include file="/context/layui.jsp"%> --%>
	<script type="text/javascript">
		function checkput() {
			var name = $("#searchbox").val();
			$.ajax({
				type : "POST",
				url : "loginController.do?getUrlpage",
				dataType : "text",
				data : "urlname=" + name,
				success : function(urlname) {
					var h = urlname;
					var options = {
						url : h,
						id : 99,
						title : name
					};
					addFineuiTab(options);
				}
			});
		}
		function getTremValueuserName() {
			return $("#searchbox").val();
		}
		$("#searchbox").autocomplete("loginController.do?getAutocomplete", {
			max : 8,
			minChars : 1,
			scroll : true,
			width : 150,
			scrollHeight : 180,
			matchContains : true,
			matchSubset : true,
			autoFill : false,
			extraParams : {
				featureClass : "P",
				style : "full",
				maxRows : 10,
				labelField : "functionName",//提示显示的字段
				valueField : "functionName",//传递后台的字段
				searchField : "functionName",//查询关键字字段
				entityName : "TSFunction",//实体名称
				trem : getTremValueuserName
			},
			parse : function(data) {
				return jeecgAutoParse.call(this, data);
			},
			formatItem : function(row, i, max) {
				return row['functionName'];
			}
		}).result(function(event, row, formatted) {
			$("#searchbox").val(row['functionName']);
		});

		//给输入框绑定按键事件
		$("#searchbox").keydown(function() {
			if (event.keyCode == "13") {
				var name = $("#searchbox").val();
				$.ajax({
					type : "POST",
					url : "loginController.do?getUrlpage",
					dataType : "text",
					data : "urlname=" + name,
					success : function(urlname) {
						var h = urlname;
						var options = {
							url : h,
							id : 99,
							title : name
						};
						addFineuiTab(options);
					}
				});
			}
		})

		function logout() {
			location.href = "loginController.do?logout";
		}
		function toSwagger() {
			window.open("swagger/index.html", "_blank");
		}
		$(function() {
			//刷新本页面
			$("#activeTabToolRefresh").click(
					function() {
						var dataId = $("ul.side-menu").find("li.active").find(
								"a").attr("href");
						if (!dataId) {
							dataId = "home.html";
						}
						var obj = $('.body-iframe[data-id="' + dataId + '"]');
						var obj_none = obj.css('display');
						if (obj_none == 'none') {
							obj = $('.body-iframe[data-id="home.html"]');
						}
						obj.attr('src', obj.attr('src'));
					});

			//搜索框样式效果
			$("#searchbox").focus(
					function() {
						$(this).addClass("searchbox-focus").addClass(
								"searchbox-focusbg");
						$(this).next("div").addClass("ui-iconss-focus");
					});
			$("#searchbox").blur(
					function() {
						$(this).removeClass("searchbox-focus").removeClass(
								"searchbox-focusbg");
						$(this).next("div").removeClass("ui-iconss-focus");
					});
			$("body").css("height", document.documentElement.clientHeight);
			//fineui首页菜单样式bug-临时方案---
			/* $(window).resize(function() {
				$("body").css("height", document.documentElement.clientHeight);
			}); */

		});

		$(".personInfo").hover(
				function() {
					$(this).find(".adminIcon").html("&#xe504;");
					$(this).children(".header-dropdown-menu").css("width",
							$(this).width() - 5);
				}, function() {
					$(this).find(".adminIcon").html("&#xe607;");
				});
		function clearLocalstorage() {
			var storage = $.localStorage;
			if (!storage)
				storage = $.cookieStorage;
			storage.removeAll();
			//bootbox.alert( "浏览器缓存清除成功!");
			layer.msg("浏览器缓存清除成功!");
		}
		//菜单折叠切换
		function toggleLeftMenu(obj) {
			if ($('#toggleLeftMenu').hasClass("close")) {
				$(obj).attr("title", "折叠菜单").find("i").html("&#xe60e;");
			} else {
				$(obj).attr("title", "展开菜单").find("i").html("&#xe501;");
			}
			$('#toggleLeftMenu').click();
		}
	</script>

	<script>
		var _hmt = _hmt || [];
		(function() {
			var hm = document.createElement("script");
			hm.src = "https://hm.baidu.com/hm.js?098e6e84ab585bf0c2e6853604192b8b";
			var s = document.getElementsByTagName("script")[0];
			s.parentNode.insertBefore(hm, s);
		})();
	</script>

</body>
</html>

